Developer --> Technical Publications
PATHMac OS 8 Developer Documentation > Networking and Communications > AppleShare >

User Authentication Modules


UAMCreateObject

Create an object in the Users & Groups Data File.

extern OAMStatus UAMCreateObject(OAMObjectSpec* object)
object
An OAMObjectSpec structure that describes the type of object that is being created (such as a user object). For more information, see the AppleShare Registry Library in the AppleShare IP 6.1 Developer's Kit .
function result
A result code. For a list of possible values, see Result Codes .
DISCUSSION
The following sample code creates a user object:
OAMObjectSpecaOAMObjectSpec;
    aOAMObjectSpec.objectType = kUser;
    aOAMObjectSpec.specType = kOAMObjectSpecByNameType;
    char *userName = "\pRealUser";
    memcpy(&(aOAMObjectSpec.u.name)userName,strlen(userName));
    aOAMStatus = UAMCreateObject(&aOAMObjectSpec);


© 1999 Apple Computer, Inc. – (Last Updated 07 May 99)